package org.millioncall.yueyoga.admin.model;

/**
 * 折扣策略实体
 * 
 * @author zangjinyu
 * @since 1.0.0
 * @version 1.0.0 <br>
 *          Last modified by zangjinyu on 2014-3-15
 * 
 */
public class DiscountStrategy {
	private Integer id;// 折扣策略编号，唯一，主键
	private String name;// 折扣策略名称
	private String productId;// 产品编号，表示此策略作用于哪个产品。如果此编号内容为@#any，表示可作用于任意产品，如果此编号内容为@#order，表示仅作用于总订单
	private int type;// 折扣类型: 1折扣率，2折扣金额，3奖励金额，4奖励积分
	private double amount;// 增益数值
	private boolean enabled = true;// 是否启用
	private AviatorExpression aviatorExpression;// 策略条件表达式
	private String description;// 备注

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public AviatorExpression getAviatorExpression() {
		return aviatorExpression;
	}

	public void setAviatorExpression(AviatorExpression aviatorExpression) {
		this.aviatorExpression = aviatorExpression;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
